#ifndef __TIP_LAYER_H__
#define __TIP_LAYER_H__

#include "cocos2d.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "audio/include/AudioEngine.h"

#include "manager/GlobalData.h"

using namespace cocos2d;
using namespace cocos2d::ui;
using namespace cocos2d::experimental;
using namespace std;

class TipLayer :public cocos2d::Layer
{
public:
	virtual bool init();

	CREATE_FUNC(TipLayer);

	void tip(const char* tips);
	void tip(const char* tips, const Color3B& color);
	void alert(int errorCode);

private:
	ui::Text* m_tips;
	ui::ImageView * m_alert;
};

#endif //__TIP_LAYER_H__